﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;

namespace Simple.Common.Core.Http
{
    public class SimpleApplicationCache
    {
        public static object GetApplicationCache(string key)
        {
            return HttpContext.Current.Application[key];
        }

        public static void SetApplicationCache(string key, object obj)
        {
            HttpContext.Current.Application.Add(key, obj);
        }

        public static void RemoveApplicationCache(string key)
        {
            HttpContext.Current.Application.Remove(key);
        }
    }
}
